import React, { FC, useContext } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
import { ProductCardContext } from '@/pages/components/ProductCard/ProductCardContext';
export interface IProps extends ICompProps {}
Payed.defaultProps = {} as Partial<IProps>;
function Payed(props: IProps) {
    const { className, style } = props;
    const { payedtext } = useContext(ProductCardContext);
    const localClassName = useClassName('Payed', className);
    return (
        <RootView className={localClassName} style={style}>
            {payedtext}
        </RootView>
    );
}
export default React.memo(Payed as FC<IProps>);
const RootView = styled(View)`
    &.Payed {
        font-size: 24px;
        font-weight: 400;
        color: #808a9d;
    }
`;
